Skip to content

docs: add Gateway Operator Scopes feature page (fixes #810)#828

Merged
MervinPraison merged 1 commit into
mainfrom
claude/issue-810-fix
Jun 23, 2026
Merged

docs: add Gateway Operator Scopes feature page (fixes #810)#828
MervinPraison merged 1 commit into
mainfrom
claude/issue-810-fix

Conversation

@MervinPraison

Copy link
Copy Markdown
Owner

Summary

  • Add docs/features/gateway-operator-scopes.mdx covering OperatorScope enum, auth_scopes policy, scope-gated routes, and backward-compatible defaults
  • Register page in docs.json under Integration & Infrastructure
  • Cross-link from bind-aware auth Related section

Fixes #810

Test plan

  • python3 -c "import json; json.load(open('docs.json'))" passes
  • Mintlify preview renders hero/sequence/decision Mermaid diagrams

Made with Cursor

Fixes #810 — documents OperatorScope, auth_scopes policy, scope-gated
routes, and backward-compatible defaults for multi-operator gateways.

Co-authored-by: Cursor <cursoragent@cursor.com>
@qodo-code-review

Copy link
Copy Markdown

Qodo reviews are paused for this user.

Troubleshooting steps vary by plan Learn more →

On a Teams plan?
Reviews resume once this user has a paid seat and their Git account is linked in Qodo.
Link Git account →

Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center?
These require an Enterprise plan - Contact us
Contact us →

@coderabbitai

coderabbitai Bot commented Jun 23, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@MervinPraison, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 40 minutes and 30 seconds. Learn how PR review limits work.

Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file).

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based credits.

🚦 How do rate limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan refill rate.

For paid Pro and Pro+ PR reviews, CodeRabbit uses rolling per-developer review limits. Reviews become available again as older review attempts age out of the rolling limit window.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: d4895e41-3010-4d41-8249-7fd8043153d7

📥 Commits

Reviewing files that changed from the base of the PR and between ab05b28 and 4706e1a.

📒 Files selected for processing (3)
  • docs.json
  • docs/features/gateway-bind-aware-auth.mdx
  • docs/features/gateway-operator-scopes.mdx
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch claude/issue-810-fix

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@MervinPraison MervinPraison merged commit f675952 into main Jun 23, 2026
6 checks passed
@MervinPraison MervinPraison deleted the claude/issue-810-fix branch June 23, 2026 12:23

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces documentation for the Gateway Operator Scopes feature, which enables role-based access control for multi-operator Gateway deployments. The review feedback points out a few areas for improvement, including correcting grammatical phrasing, ensuring US English spelling consistency (e.g., 'behavior' and 'defense'), and fixing incorrect API endpoint paths for the allowlist to prevent 404 errors.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

icon: "shield-check"
---

Operator scopes grant teammates least-privilege access to a shared Gateway — read-only dashboards, send-but-not-approve operators, or full admins — without handing over the whole keys.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The phrase "without handing over the whole keys" is grammatically awkward. Consider changing it to "without handing over the master keys" or "without handing over all the keys" for better clarity and professional tone.

Operator scopes grant teammates least-privilege access to a shared Gateway — read-only dashboards, send-but-not-approve operators, or full admins — without handing over the master keys.

</Steps>

<Note>
When **no** `auth_scopes` policy is configured, every successfully authenticated client is granted **all** scopes — identical to today's binary auth behaviour. Single-operator setups need no changes.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Change "behaviour" to "behavior" to maintain US English spelling consistency with the rest of the documentation (e.g., "behavior" is used in gateway-bind-aware-auth.mdx).

Comment on lines +230 to +231
| `/api/approval/allowlist` | GET | any authenticated |
| `/api/approval/allowlist` | POST/DELETE | `approvals` |

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The actual endpoint implemented in the gateway server is /api/approval/allow-list (with a hyphen), as defined in praisonai/gateway/server.py (line 992). Using /api/approval/allowlist (without a hyphen) will result in a 404 error. Please update the route paths in this table to use /api/approval/allow-list.

</Accordion>

<Accordion title="Pair approvals with the allowlist">
Combine `approvals` scope with `/api/approval/allowlist` for defence-in-depth on tool execution.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Update /api/approval/allowlist to /api/approval/allow-list to match the actual server endpoint. Additionally, consider changing "defence-in-depth" to "defense-in-depth" to maintain US English spelling consistency with the rest of the documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs: add Gateway Operator Scopes (multi-operator access control) feature page

1 participant